package com.yan.handlers;

import com.yan.base.AlertRule;
import com.yan.base.ApiStatInfo;
import com.yan.base.Notification;

/**
 * @author yanheng
 * @data 2019/12/31 17:02
 */
public abstract class AlertHandler {

    protected AlertRule rule;
    protected Notification notification;

    public AlertHandler(AlertRule rule, Notification notification){
        this.rule = rule;
        this.notification = notification;
    }

    public abstract void check(ApiStatInfo apiStatInfo);
}
